package com.smart.seckilldemo.service;

import com.smart.seckilldemo.pojo.SeckillOrder;

public interface SeckillOrderService {

    /**
     *  判断是否重复购买
     *  true 可以继续购买
     *  false 不可以购买
     * @param userId
     * @param goodsId
     * @return
     */
    Boolean getOrderThere(Long userId,Long goodsId,Integer number);

    /**
     * 添加秒杀订单
     * @param seckillOrder
     * @return
     */
    Integer insertOrder(SeckillOrder seckillOrder);

}
